# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Grigorios Bouzakis <grbzks[at]gmail[dot]com>
# Contributor: Patrick Leslie Polzer <polzer@gnu.org>
# Contributor: Aaron 'venisonslurpee' Laursen <venisonslurpee@gmail.com>

pkgname=zsh-lovers
pkgver=0.10.1
pkgrel=1
pkgdesc="A collection of tips, tricks and examples for the Z shell."
arch=('any')
url='https://grml.org/zsh/#zshlovers'
license=('GPL')
source=("$pkgname-$pkgver.tar.gz::https://github.com/grml/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('9a8c68660de2a5c2678fba8c38f9d4cb')
sha256sums=('ef3a4837487443de713fe3eac111754f3cb32f712a36267dcee2b6c68fec746d')
makedepends=('asciidoc')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  a2x -vv --no-xmllint -f manpage zsh-lovers.1.txt
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}/"
  install -Dm0644 "${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
}
